using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace GuavaLib
{
    internal partial class FindingSelect : Form
    {
        public FindingSelect()
        {
            InitializeComponent();
        }

        public string[] Findings
        {
            get
            {
                List<string> ls = new List<string>();
                foreach (object o in this.lstItems.Items) ls.Add(o.ToString());
                return ls.ToArray();
            }
            set
            {
                this.lstItems.Items.Clear();
                this.lstItems.Items.AddRange(value);
            }
        }

        public string SelectedFinding
        {
            get
            {
                return this.lstItems.SelectedItem.ToString();
            }
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}